/* CSS */
.admin-title {
    font-size: 1.25rem;
    color: #f8f9fa;
    margin-bottom: 1rem;
}
.content {
    padding: 1rem;
    background-color: white;
    height: calc(100vh - 62px - 2 * 1rem); /* 更新content的高度 */
}

.admin-home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* 更新宽度为100% */
    height: 100%; /* 更新高度为100% */
    font-family: Arial, sans-serif;
    margin: auto; /* 添加 margin: auto 居中效果 */
}

.admin-home h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 1rem;
}

.admin-home img {
    width: 80%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}
/*
coach
 */

.sub-menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 0.5rem;
}

.sub-menu ul li {
    padding: 0.5rem 0;
}

.sub-menu ul li a {
    text-decoration: none;
    font-size: 1rem; /* 设置子导航字体大小 */
    color: #b8c2cc;
    display: block;
    padding: 0.5rem 2rem; /* 设置子导航内边距 */
}

.sub-menu ul li a:hover {
    background-color: #4caf50;
    color: white;
}
/*
admin
 */
.main-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 18%;
    background-color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}
.logo-container img {
    width: 180px; /* 修改宽度 */
    height: 150px; /* 修改高度 */
    object-fit: cover; /* 避免图片拉伸，保持原始宽高比 */
}
nav ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
    margin-top: 1rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    display: block;
    padding: 2rem;
    text-align: center;
    font-size: 1.25rem;
}

nav ul li a:hover {
    background-color: #4caf50;
}

main {
    width: 82%;
    position: relative;
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.user-info {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.user-dropdown img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.username {
    font-weight: bold;
    padding-top: 8px;
}

.user-dropdown ul {
    position: absolute;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0;
    top: calc(100% + 8px);
    border-radius: 5px;
    visibility: hidden;
}

.user-dropdown ul.show-dropdown {
    visibility: visible;
}

.user-dropdown ul li {
    padding: 5px 0;
}

.user-dropdown ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    display: block;
}

.user-dropdown ul li a:hover {
    color: #4caf50;
}